package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class MemberShopWallet implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
//	shop_wallet_balance	消费钱包钱包余额	double			NOT NULL
//	shop_wallet_last_time	最后一次更新时间	time			
//	shop_wallet_remark	备注	varchar	256		
//	shop_wallet_spare	备用字段	varchar	256		
	
	@Column(nullable=false)
	private double shopWalletBalance;
	
	@Column(nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date shopWalletLastTime;
	
	private String shopWalletRemark;
	
	private String shopWalletSpare;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public double getShopWalletBalance() {
		return shopWalletBalance;
	}

	public void setShopWalletBalance(double shopWalletBalance) {
		this.shopWalletBalance = shopWalletBalance;
	}

	public Date getShopWalletLastTime() {
		return shopWalletLastTime;
	}

	public void setShopWalletLastTime(Date shopWalletLastTime) {
		this.shopWalletLastTime = shopWalletLastTime;
	}

	public String getShopWalletRemark() {
		return shopWalletRemark;
	}

	public void setShopWalletRemark(String shopWalletRemark) {
		this.shopWalletRemark = shopWalletRemark;
	}

	public String getShopWalletSpare() {
		return shopWalletSpare;
	}

	public void setShopWalletSpare(String shopWalletSpare) {
		this.shopWalletSpare = shopWalletSpare;
	}
	
	

}
